package com.ruoyi.project.system.partymember.domain;

import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 党员组织关系变动对象 party_relationship_change
 * 
 * @author ruoyi
 * @date 2023-07-15
 */
public class PartyRelationshipChange extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 关联党员ID */
    private Long memberId;

    /** 变动类型（1-转入，2-转出，3-校内调动，4-休学，5-复学） */
    private String changeType;

    /** 原组织 */
    private String sourceOrg;

    /** 目标组织 */
    private String targetOrg;

    /** 变动日期 */
    private Date changeDate;

    /** 变动原因 */
    private String reason;

    /** 经办人 */
    private String handler;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMemberId(Long memberId) 
    {
        this.memberId = memberId;
    }

    public Long getMemberId() 
    {
        return memberId;
    }
    public void setChangeType(String changeType) 
    {
        this.changeType = changeType;
    }

    public String getChangeType() 
    {
        return changeType;
    }
    public void setSourceOrg(String sourceOrg) 
    {
        this.sourceOrg = sourceOrg;
    }

    public String getSourceOrg() 
    {
        return sourceOrg;
    }
    public void setTargetOrg(String targetOrg) 
    {
        this.targetOrg = targetOrg;
    }

    public String getTargetOrg() 
    {
        return targetOrg;
    }
    public void setChangeDate(Date changeDate) 
    {
        this.changeDate = changeDate;
    }

    public Date getChangeDate() 
    {
        return changeDate;
    }
    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }
    public void setHandler(String handler) 
    {
        this.handler = handler;
    }

    public String getHandler() 
    {
        return handler;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("memberId", getMemberId())
            .append("changeType", getChangeType())
            .append("sourceOrg", getSourceOrg())
            .append("targetOrg", getTargetOrg())
            .append("changeDate", getChangeDate())
            .append("reason", getReason())
            .append("handler", getHandler())
            .append("createTime", getCreateTime())
            .append("remark", getRemark())
            .toString();
    }
}